Skip to content
This repository has been archived by the owner on Mar 8, 2018. It is now read-only.

Add Atom feeds for issues either by operator or map area #603

Merged
merged 11 commits into from Apr 16, 2012

Conversation

mhl
Copy link
Contributor

@mhl mhl commented Apr 16, 2012

Add Atom feeds for issues either by operator or map area

These commits add in-page links to Atom feeds for issues in two situations:

  • When you're viewing the Issues tab of a particular Operator's page
  • When you're browsing issues in a particular area, i.e. when a map of issues is being shown

In the latter case the feed link will be updated dynamically when dragging the map or zooming in and out.

This pull request also includes commits with various other minor fixes.

mhl added 11 commits April 16, 2012 10:56
This relies on history.replaceState, which isn't supported on all
browsers.  However, if the history.replaceState function doesn't
exist, the behaviour will be as before.
There are now only two JSLint errors if you use the following
options:

 {
   browser: true,
   'continue': true,
   'break': true,
   vars: true,
   white: true,
   plusplus: true,
   maxerr: 50,
   indent: 2
 }

The last two are (I think) spurious "strict violation" warnings
for:

  this.drawFeature(segment)

... in each case, I think because JSLint can't detect that
these functions are used as event handlers.
This dynamically updates the link when scrolling the map
@mysociety mysociety merged commit f6ff288 into mysociety:master Apr 16, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants